package day20171219;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

public class Test {

    public static void main(String[] args) {
        Map<String,Integer>map = new HashMap<String, Integer>();

        //map.put("1606101071",0);

        try {
            BufferedReader reader = new BufferedReader(
                    new FileReader("D:\\names.txt"));//文件的路径

            String sno = null;

            while ((sno = reader.readLine())!=null){
                map.put(sno,0);
            }

            File file = new File("D:\\");//收到文件的存放路径
            File[] files = file.listFiles();

            //遍历文件夹下面的每一个文件
            for (File f : files){
                String fileName = f.getName();

            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
